package com.shared.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.Date;
import java.io.Serializable;

/**
 * (PCoupon)实体类
 *
 * @author makejava
 * @since 2020-06-22 11:56:10
 */
@ApiModel(value = "PCoupon", description = "优惠券")
public class PCoupon implements Serializable {
    private static final long serialVersionUID = 750152166499873251L;
    @ApiModelProperty(value = "[自动增长]优惠券主键")
    private Object id;
    /**
     * 用户ID
     */
    @ApiModelProperty(value = "[必填]用户id")
    private Integer userid;
    /**
     * id
     * 优惠券名称
     */
    @ApiModelProperty(value = "[必填]优惠券姓名")
    private String cname;
    /**
     * 金额
     */
    @ApiModelProperty(value = "[必填]优惠的金额")
    private Integer amount;
    /**
     * 使用限制金额
     */
    @ApiModelProperty(value = "[必填]优惠的使用限制金额")
    private Integer criteria;
    /**
     * 状态：0->可用；1->已失效
     */
    @ApiModelProperty(value = "[必填]优惠状态：0，,可用，1、已失效")
    private Integer state;
    /**
     * 开始时间
     */
    @ApiModelProperty(value = "[必填]优惠的开始时间")
    private Date starttime;
    /**
     * 结束时间
     */
    @ApiModelProperty(value = "[必填]优惠过期时间")
    private String endtime;


    public Object getId() {
        return id;
    }

    public void setId(Object id) {
        this.id = id;
    }

    public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    public String getCname() {
        return cname;
    }

    public void setCname(String cname) {
        this.cname = cname;
    }

    public Integer getAmount() {
        return amount;
    }

    public void setAmount(Integer amount) {
        this.amount = amount;
    }

    public Integer getCriteria() {
        return criteria;
    }

    public void setCriteria(Integer criteria) {
        this.criteria = criteria;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Date getStarttime() {
        return starttime;
    }

    public void setStarttime(Date starttime) {
        this.starttime = starttime;
    }

    public String getEndtime() {
        return endtime;
    }

    public void setEndtime(String endtime) {
        this.endtime = endtime;
    }

}